package com.wangyukai.jmonitor.plugin;

import java.net.InetAddress;

public class ServerPlugin implements IMonitorPlugin{
    @Override
    public String executeCheck() {
        try {
            InetAddress ip = InetAddress.getLocalHost();
            return "服务器ip地址：" + ip.getHostAddress() + "机器名: "+ ip.getHostName();
        }catch (Exception ex){
            return "";
        }
    }
}
